package cn.snmp.mutual.org.opennms.protocols.snmp;

public class SnmpPduBulk extends SnmpPduPacket {
    public SnmpPduBulk() {
        super(165);
    }

    public SnmpPduBulk(final SnmpPduBulk second) {
        super(second);
    }

    public SnmpPduBulk(final int nonRepeaters, final int maxRepititions, final SnmpVarBind[] vars) {
        super(165, vars);
        super.m_errStatus = nonRepeaters;
        super.m_errIndex = maxRepititions;
    }

    public int getNonRepeaters() {
        return super.m_errStatus;
    }

    public void setNonRepeaters(final int nonreps) {
        super.m_errStatus = nonreps;
    }

    public int getMaxRepititions() {
        return super.m_errIndex;
    }

    public void setMaxRepititions(final int maxreps) {
        super.m_errIndex = maxreps;
    }

    @Override
    public SnmpSyntax duplicate() {
        return new SnmpPduBulk(this);
    }

    @Override
    public Object clone() {
        return new SnmpPduBulk(this);
    }
}
